<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <title>JSP - Hello World</title>
</head>
<body>
<h1><%= "Hello World!" %>
</h1>
<br/>
<a href="hello-servlet">Hello Servlet</a><br>

<jsp:useBean id="holle" class="com.example.demo.hello">
    <jsp:setProperty name="hello" property="name" value="LiYJ"/>
</jsp:useBean>
<h1>
    <jsp:getProperty name="hello" property="name"/>
</h1>
<h1>
    <jsp:getProperty name="hello" property="age"/>
</h1>

</body>
</html>